from correlation.correlation import correlate

def match(spectrogram1, spectrogram2):
    freq_snapshots1 = spectrogram1.freq_snapshots
    freq_snapshots2 = spectrogram2.freq_snapshots
    return correlate(freq_snapshots1, freq_snapshots2)